package com.ly.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户教育经历对象 erp_user_educational_info
 * @author wutao
 * @date 2024-05-29
 */
@TableName ("erp_user_educational_info")
@ApiModel (value = "erp_user_educational_info对象", description = "用户教育经历")
@Data
public class UserEducationalEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 用户Id
     */
    @ApiModelProperty ("用户Id")
    @TableField ("user_id")
    @Excel (name = "用户Id")
    private String userId;


    /**
     * 学历
     */
    @ApiModelProperty ("学历")
    @TableField ("educational")
    @Excel (name = "学历")
    private String educational;

    /**
     * 学历性质，关联字典表
     */
    @ApiModelProperty ("学历性质，关联字典表")
    @TableField ("educational_attr")
    @Excel (name = "学历性质，关联字典表")
    private String educationalAttr;

    /**
     * 毕业院校
     */
    @ApiModelProperty ("毕业院校")
    @TableField ("graduation_institution")
    @Excel (name = "毕业院校")
    private String graduationInstitution;

    /**
     * 专业
     */
    @ApiModelProperty ("专业")
    @TableField ("major")
    @Excel (name = "专业")
    private String major;

    /**
     * 证书
     */
    @ApiModelProperty ("证书")
    @TableField ("certificate")
    @Excel (name = "证书")
    private String certificate;

    /**
     * 是否可用
     */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    private Integer isUsed;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "userId", getUserId () )
                .append ( "endTime", getEndTime () )
                .append ( "educational", getEducational () )
                .append ( "educationalAttr", getEducationalAttr () )
                .append ( "graduationInstitution", getGraduationInstitution () )
                .append ( "major", getMajor () )
                .append ( "certificate", getCertificate () )
                .append ( "createBy", getCreateBy () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
